home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / kernel / sprite / RCS / SnapshotSources,v < prev    next >
Encoding:
Text File  |  1992-06-04  |  2.6 KB  |  173 lines

  1. head     1.5;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @# @;
  7.  
  8.  
  9. 1.5
  10. date     92.06.04.13.30.52;  author jhh;  state Exp;
  11. branches ;
  12. next     1.4;
  13.  
  14. 1.4
  15. date     91.12.19.18.09.30;  author jhh;  state Exp;
  16. branches ;
  17. next     1.3;
  18.  
  19. 1.3
  20. date     91.12.13.13.34.46;  author jhh;  state Exp;
  21. branches ;
  22. next     1.2;
  23.  
  24. 1.2
  25. date     90.03.16.11.45.38;  author rab;  state Exp;
  26. branches ;
  27. next     1.1;
  28.  
  29. 1.1
  30. date     90.03.16.11.45.03;  author rab;  state Exp;
  31. branches ;
  32. next     ;
  33.  
  34.  
  35. desc
  36. @@
  37.  
  38.  
  39. 1.5
  40. log
  41. @pathname needed to be in quotes
  42. @
  43. text
  44. @#!/bin/csh -f  
  45.  
  46. onintr cleanup
  47.  
  48. if ($#argv != 1) then
  49.     echo "Usage: $0 versionNumber"
  50.     exit
  51. endif
  52. set insDir = '/sprite/src/kernel/Snapshots'
  53. set srcDir = '/sprite/src/kernel'
  54. set version = $1
  55. if (-e "$insDir/$version/.ssdone") then
  56.     echo "$insDir/$version already exists. Skipping snapshot of sources."
  57.     exit
  58. endif
  59. pushd $srcDir
  60. pmake SNAPDIR=$insDir SNAPVERSION=$version snapshot
  61. popd
  62.  
  63. mkdir $insDir/$version/include
  64. update /sprite/lib/include $insDir/$version/include
  65. pushd $insDir/$version/include
  66. rm user
  67. rm kernel
  68. ln -s ../Include kernel
  69. foreach i (*.md)
  70.     pushd $i
  71.     rm kernel
  72.     ln -s ../../Include/$i kernel
  73.     popd
  74. end
  75. popd
  76.  
  77. mkdir $insDir/$version/Include
  78. update /sprite/src/kernel/Include $insDir/$version/Include
  79. pushd $insDir/$version/Include
  80. rm user
  81. ln -s ../include user
  82. foreach i (*.md)
  83.     pushd $i
  84.     rm user
  85.     ln -s ../../include/$i user
  86.     popd
  87. end
  88. popd
  89.  
  90. touch $insDir/$version/.ssdone
  91. echo "***** KERNEL $version" `date` "*****" >> /sprite/src/kernel/scvs.log
  92.  
  93. cleanup:
  94.     rm -f /tmp/ss.$$
  95.     rm -f /tmp/ss.libc.$$
  96.     rm -f /tmp/ss.script.$$
  97.  
  98. @
  99.  
  100.  
  101. 1.4
  102. log
  103. @puts a note in scvs.log when a snapshot is made
  104. @
  105. text
  106. @d12 1
  107. a12 1
  108. if (-e $insDir/$version/.ssdone) then
  109. @
  110.  
  111.  
  112. 1.3
  113. log
  114. @uses pmake support for snapshots
  115. @
  116. text
  117. @a15 1
  118.  
  119. d48 1
  120. @
  121.  
  122.  
  123. 1.2
  124. log
  125. @Added raid.null to list of modules to be snapshoted.
  126. @
  127. text
  128. @d2 3
  129. d9 2
  130. a10 1
  131. set insDir = '/sprite/src/kernel/Installed'
  132. d12 1
  133. a12 1
  134. if (-e $insDir/$version) then
  135. d17 3
  136. a19 23
  137. mkdir $insDir/$version
  138. foreach i (`cat /sprite/src/kernel/Modules` raid.null)
  139.     mkdir $insDir/$version/$i
  140.     switch ($i)
  141.         #
  142.     # The following modules should have the target of a symbolic link
  143.     # copied, not the link itself
  144.     #
  145.     case 'libc'
  146.         set updateOptions = $updateOptions '-l'
  147.         breaksw
  148.     default
  149.         set updateOptions = ""
  150.         breaksw
  151.     endsw
  152.     update $updateOptions $insDir/$i $insDir/$version/$i
  153. end
  154.  
  155. #
  156. # Snapshot the kernel and user include files.  We have to change the
  157. # 'kernel' and 'user' links, since they are absolute in the 
  158. # uninstalled sources.
  159. #
  160. d48 6
  161. @
  162.  
  163.  
  164. 1.1
  165. log
  166. @Initial revision
  167. @
  168. text
  169. @d14 1
  170. a14 1
  171. foreach i (`cat /sprite/src/kernel/Modules`)
  172. @
  173.